<div class="container">
    <form name="SetRoundStatus" action="<?php echo URL . "admin/setroundstatus" ?>" method="POST">
        Round nr <select name="RoundNr">

            <?php
            $sth = $this->model->GetRounds();
            $TabIndex = 0;
            while ($data = $sth->fetch()) {
                $RoundNr = $data['nr'];
                $TabIndex++;
                ?>      
                <option value="<?php echo $TabIndex ?>"><?php echo $RoundNr ?></option>
                <?php
            }
            ?>
        </select>
        Status <select name="RoundStatus">
        <?php
        $sth = $this->model->GetPosibleRoundStatus();
        while ($data = $sth->fetch()) {
            $status = $data['status'];
            ?>      
            <option value="<?php echo $status ?>"><?php echo $status ?></option>
            <?php
        }
        ?>
        </select>
        <input type="submit" name="submit" value="Change" />
    </form>
</div>

<div class="container">
    <form name="SetMatchResult" action="<?php echo URL . "admin/setmatchresult" ?>" method="POST">
        Match nr <select name="MatchNr">

            <?php
            $sth = $this->model->GetMatchs();
            while ($data = $sth->fetch()) {
                $matchId = $data['matchId'];
                $nameTeamA = $data['nameTeamA'];
                $nameTeamB = $data['nameTeamB'];
                $round = $data['round'];
                ?>      
                <option value="<?php echo $matchId ?>"><?php echo $matchId.": Round: ".$round." - ".$nameTeamA." vs. ".$nameTeamB ?></option>
                <?php
            }
            ?>
        </select>
        Result <select name="MatchResult">
        <?php
        $sth = $this->model->GetPosibleMatchResult();
        while ($data = $sth->fetch()) {
            $result = $data['result'];
            ?>      
            <option value="<?php echo $result ?>"><?php echo $result ?></option>
            <?php
        }
        ?>
        </select>
        <input type="submit" name="submit" value="Change" />
    </form>
</div>

<div class="container">
    <form name="SetMatchResult" action="<?php echo URL . "admin/updatescore" ?>" method="POST">
        Update score
        <input type="submit" name="Update" value="Change" />
    </form>
</div>
</div>